# 从键盘输入三个数，按从大到小的顺序排序
a, b, c = map(int, input('请输入a,b,c三个数，以空格隔开:').split())
print('排序前 a,b,c:%d %d %d' % (a, b, c))
if a > b:
    if b > c:
        print("排序后：%d %d %d" % (a, b, c))
    elif a > c:  # b<c a>c
        print("排序后：%d %d %d" % (a, c, b))
    else:  # a>b a<c
        print("排序后：%d %d %d" % (c, a, b))
elif a > c:  # a<b a>c
    print("排序后：%d %d %d" % (b, a, c))
elif b > c:  # b>c a<b a<c
    print("排序后：%d %d %d" % (b, c, a))
else:  # a<b b<c
    print("排序后：%d %d %d" % (c, b, a))
